<?php
use PhpBoot\Docgen\Swagger\Swagger;
use PhpBoot\Docgen\Swagger\SwaggerProvider;
use PhpBoot\Application;
use PhpBoot\Controller\Hooks\Cors;
use PhpBoot\Docgen\Swagger\Schemas\ExternalDocumentationObject;

ini_set('date.timezone','Asia/Shanghai');

define('ROOT_PATH', dirname(dirname(__DIR__)));
require ROOT_PATH . '/vendor/autoload.php';
require ROOT_PATH . '/demo/App/Controllers/Demo.php';

$app = Application::createByDefault();


// 执行请求
$app->buildCache(ROOT_PATH . '/demo/App/Controllers/', 'demo\\App\\Controllers');
